import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

// 引入自己写的layout
import Layout from '../views/layout/index.vue'


export default new Router({
  routes: [

    {
      path: '/',
      component: Layout,
      redirect: '/signalWire',
      children: [{
        path: '/signalWire',
        name: 'signalWire',
        component: () => import('@/views/signalWire/signalWire'),
        meta: {title: 'signalWire管理', access: 0, affix: true}
      }]
    },

    // {
    //   path: '/twilio',
    //   component: Layout,
    //   redirect: '/twilio',
    //   children: [{
    //     path: '/twilio',
    //     name: 'twilio',
    //     component: () => import('@/views/twilio/twilio'),
    //     meta: {title: 'twilio管理', access: 0, affix: true}
    //   }]
    // },

    {
      path: '/product',
      component: Layout,
      redirect: '/product',
      children: [{
        path: '/product',
        name: 'product',
        component: () => import('@/views/product/product'),
        meta: {title: '产品推荐', access: 0, affix: true}
      }]
    },


  ]
})
